<template>
<div id="app" class='wrapper'>
    <router-view></router-view>
</div>
</template>
<script>

export default {
  name: 'App',
  data() {
        return {
            tab: ''
        }
    },
    methods: {},
    mounted() {
        // const script = document.createElement('script');
        // script.src = 'https://unpkg.com/vue@next';//网络文件
        // script.language = 'JavaScript';
        // document.body.appendChild(script);
    },
    watch: {
        // $route(to, from) {
        //     if (to.name === 'home') {

        //         let OtherQuery = getOtherQuery(this.$route.query) //$route.query接参,参数来源于  this.$router.push({ path:'/index',query:{userId:1} })
        //         this.$router.push({path: '/home', query: Object.assign({tab: 'tabbar'}, OtherQuery)})
        //     }
        //     if (to.query && to.query.tab) {
        //         this.tab = to.query.tab
        //     } else {
        //         this.tab = ''
        //     }
        //     if (window._czc) {
        //         let location = window.location;//路由变化
        //         let contentUrl = location.hash;//自定义当前url，可带上路由以此区分每个页面
        //         let refererUrl = '/';
        //         window._czc.push(["_setAutoPageview", false]);
        //         window._czc.push(["_trackPageview", contentUrl, refererUrl])

        //     }
        // }
    }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>